package com.cc.visitor.controller;

import com.cc.alltype.ResponseResult;
import com.cc.visitor.entity.VisitMiniMsg;
import com.cc.visitor.service.VisitMiniMsgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author chanchaw
 * @create 2025-01-11 10:55
 */
@CrossOrigin
@RestController
@RequestMapping("/visitMiniMsg")
public class VisitMiniMsgController {
    @Autowired
    private VisitMiniMsgService service;
    @PostMapping("/insert")
    public ResponseResult insert(@RequestBody VisitMiniMsg record){
        return ResponseResult.ok(service.insertSelective(record));
    }
}
